package io.renren.modules.seal.vo;

import io.renren.modules.seal.entity.EcifEntity;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author:gaolong.xie
 * @Date: 2024/9/4
 * @Description:
 **/
@Data
public class EcifVo extends EcifEntity implements Serializable {

    private String cifStatus;
    private String cifStatusName;

    private String adminUser;
    private String adminName;
    private String adminIdcard;
    private String adminPhone;
    private String adminStatus;
    private String adminStatusName;


    private String authBusiid;
    private String authFilename;
    private String idcardBusiid;
    private String idcardFilename;

    private String yyzzBusiid;

    private String yyzzFilename;


    private String frBookBusiid;

    private String frBookFilename;


    private String frIdcardBusiid;

    private String frIdcardFilename;


    private String authStatus;

    private String authStatusName;

    private String authTime;

    private String authUser;

    private String authReason;

    public String getCifStatusName() {
        return "1".equals(this.cifStatus)? "已认证" : "未认证";
    }

    public String getAdminStatusName() {
        return "1".equals(this.adminStatus)? "已认证" : "未认证";
    }

    public String getAuthStatusName() {
        if ("0".equals(this.authStatus)){
            return "未认证";
        }
        if ("1".equals(this.authStatus)){
            return "待复核";
        }
        if ("2".equals(this.authStatus)){
            return "认证失败";
        }
        if ("3".equals(this.authStatus)){
            return "认证成功";
        }
        if ("4".equals(this.authStatus)){
            return "待复核";
        }
        if ("5".equals(this.authStatus)){
            return "复核失败";
        }
        return "";

    }
}
